package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.XsdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface XsdService extends BaseService<XsdBean> {

	XsdBean getXsdBeanById(String id) throws Exception;
	
	void removeXsdBeanById(String id) throws Exception;
	
	void removeXsdBeanByIds(String ids) throws Exception;
	
	XsdBean saveXsdBean(XsdBean crm) throws Exception;
	
	XsdBean updateXsdBean(XsdBean crm) throws Exception;
	
	Page<XsdBean>  findXsdBeanByCond(XsdBean bean,
			Page<XsdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveXsdBeanExt(String sql) throws Exception;

	String findXsdBeanExtCreate(String tableName) throws Exception;

	String findXsdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findXsdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasXsdBeanExtData(String tableName, String id)
			throws Exception;
}